package com.tangkun.model;

import org.hibernate.validator.constraints.NotEmpty;

public class Book {
	 private int id;  
	 	@NotEmpty(message="{name.not.empty}")
	    private String name;  
	    private String author;  
	    public Book(){}  
	    public Book(int id, String name, String author) {  
	        super();  
	        this.id = id;  
	        this.name = name;  
	        this.author = author;  
	    }  
	    public int getId() {  
	        return id;  
	    }  
	    public void setId(int id) {  
	        this.id = id;  
	    }  
	    public String getName() {  
	        return name;  
	    }  
	    public void setName(String name) {  
	        this.name = name;  
	    }  
	    public String getAuthor() {  
	        return author;  
	    }  
	    public void setAuthor(String author) {  
	        this.author = author;  
	    }  
}
